package com.xuhuan.demo.properties;

import com.xuhuan.demo.properties.config.DemoConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author huan.xu
 * @Date 2022/11/6 13:45
 * @Description 测试controller
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private DemoConfig demoConfig;

    @GetMapping("/get-properties")
    public Object getProperties() {
        return demoConfig;
    }
}
